#include "helix.h"
#include "../framework.h"

Vertexf Helix::vertices[]={Vertexf(-0.1,0),Vertexf(-0.2,0.65),Vertexf(-0.05,0.8),
                           Vertexf(0.05,0.8),Vertexf(0.2,0.65), Vertexf(0.1,0)};

Helix::Helix(Rectangle rec)
	:SceneObject(rec){

	this->objVertices.vertices = vertices;
	objVertices.nVertices=nVertices;
}

Helix::~Helix(){

}


void Helix::draw(){
	Framework& fr = Framework::instance();
	fr.pipeline.pushMatrix();
	Colorf oldColor = fr.pipeline.getFillColor();
	fr.pipeline.setFillColor(Colorf(0.7f,0.75f,0.7f));
	fr.pipeline.escale(20,20);
	fr.pipeline.draw(Pipeline::POLYGON,this->objVertices.vertices,this->objVertices.nVertices);
	fr.pipeline.setFillColor(oldColor);
	fr.pipeline.popMatrix();
}


